<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="__CSS__/bootstrap.min.css" rel="stylesheet">
    <link href="__CSS__/report.css" rel="stylesheet">
    <title>已报修</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">

                <fieldset>
                    <legend>外部报修通知</legend>
                    <div class="form-group">
                        <label class="control-label col-md-2">设备名称</label>
                        <span id="result-equip-name" class="text-left col-md-10">
                            <?php 
                                $devicename =  $msg['0']; 
                                
                                $len =  strlen($devicename);
                                if($len>30){
                                  echo mb_substr($devicename,0,30)."...";
                                }else{
                                  echo $devicename; 
                                }   
                            ?>

                        </span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">报修时间</label>
                        <span id="result-lastDate" class="text-left col-md-10"><?php echo $msg['1'];?></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">设备型号</label>
                        <span id="result-equip-id" class="text-left col-md-10"><?php echo $msg['2'];?></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">报修人</label>
                        <span id="result-reporter-name" class="text-left col-md-10"><?php echo $msg['3'];?></span>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">电话</label>
                        <span id="result-reporter-phone" class="text-left col-md-10"><?php echo $msg['4'];?></span>
                    </div>
                    <div class="form-group">
                        <label for="describe" class="control-label col-md-2">故障描述</label>
                        <div class="col-md-10">
                            <textarea disabled id="describe" name="result-describe" class="form-control" rows="3"><?php echo $msg['5'];?></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2">附件图片</label>
                        <div class="col-md-10">
                        	<?php
                            $url = $msg['6'];
                        	?>
                            <button class="btn btn_primary" id="previewImage">
                                <img src="<?php echo $url;?>" id="result-img" class="center-block"/>
                            </button> 
                        </div>
                    </div>
                </fieldset>
            <p class="bg-primary text-center">报修成功</p>
            <form id="logForm" class="form-horizontal" action="<?php echo $code;?>" method="POST">
                    <button id="log" type="submit" class="btn btn-default center-block form-control btn-log">
                        前往维修</button>
            </form>
        </div>
    </div>
</div>
</body>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/report.js"></script>
</html>